package com.sejong.andproject;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        
    	
    	
    	startActivity(new Intent(this, splashimage.class));
    	
    	
    	super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        ImageView img01 = (ImageView)findViewById(R.id.location);
        ImageView img02 = (ImageView)findViewById(R.id.message);
        ImageView img03 = (ImageView)findViewById(R.id.option);
        
        img01.setOnClickListener(new OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MainActivity.this,userlocation.class);
				startActivity(intent);
			}
        	
        	
        });
        
        img02.setOnClickListener(new OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MainActivity.this,sendmessage.class);
				startActivity(intent);
			}
        	
        	
        });
        
        img03.setOnClickListener(new OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
        	
        	
        });
       // Button btn01 = (Button)findViewById(R.id.button001);
      //  Button btn02 = (Button)findViewById(R.id.button002);
       /*
        btn01.setOnClickListener(new OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MainActivity.this,userlocation.class);
				startActivity(intent);
			}
        	
        	
        });
        
        btn02.setOnClickListener(new OnClickListener(){

			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent = new Intent(MainActivity.this,sendmessage.class);
				startActivity(intent);
				
				
			}
        	
        	
			});
        */   
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
}
